home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / xcb / xtest.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-17  |  12.2 KB  |  420 lines

  1. /*
  2.  * This file generated automatically from xtest.xml by c-client.xsl using XSLT.
  3.  * Edit at your peril.
  4.  */
  5.  
  6. /**
  7.  * @defgroup XCB_Test_API XCB Test API
  8.  * @brief Test XCB Protocol Implementation.
  9.  * @{
  10.  **/
  11.  
  12. #ifndef __XTEST_H
  13. #define __XTEST_H
  14.  
  15. #include "xcb.h"
  16. #include "xproto.h"
  17.  
  18. #define XCB_TEST_MAJOR_VERSION 2
  19. #define XCB_TEST_MINOR_VERSION 1
  20.   
  21. extern xcb_extension_t xcb_test_id;
  22.  
  23. /**
  24.  * @brief xcb_test_get_version_cookie_t
  25.  **/
  26. typedef struct xcb_test_get_version_cookie_t {
  27.     unsigned int sequence; /**<  */
  28. } xcb_test_get_version_cookie_t;
  29.  
  30. /** Opcode for xcb_test_get_version. */
  31. #define XCB_TEST_GET_VERSION 0
  32.  
  33. /**
  34.  * @brief xcb_test_get_version_request_t
  35.  **/
  36. typedef struct xcb_test_get_version_request_t {
  37.     uint8_t  major_opcode; /**<  */
  38.     uint8_t  minor_opcode; /**<  */
  39.     uint16_t length; /**<  */
  40.     uint8_t  major_version; /**<  */
  41.     uint8_t  pad0; /**<  */
  42.     uint16_t minor_version; /**<  */
  43. } xcb_test_get_version_request_t;
  44.  
  45. /**
  46.  * @brief xcb_test_get_version_reply_t
  47.  **/
  48. typedef struct xcb_test_get_version_reply_t {
  49.     uint8_t  response_type; /**<  */
  50.     uint8_t  major_version; /**<  */
  51.     uint16_t sequence; /**<  */
  52.     uint32_t length; /**<  */
  53.     uint16_t minor_version; /**<  */
  54. } xcb_test_get_version_reply_t;
  55.  
  56. typedef enum xcb_test_cursor_t {
  57.     XCB_TEST_CURSOR_NONE = 0,
  58.     XCB_TEST_CURSOR_CURRENT = 1
  59. } xcb_test_cursor_t;
  60.  
  61. /**
  62.  * @brief xcb_test_compare_cursor_cookie_t
  63.  **/
  64. typedef struct xcb_test_compare_cursor_cookie_t {
  65.     unsigned int sequence; /**<  */
  66. } xcb_test_compare_cursor_cookie_t;
  67.  
  68. /** Opcode for xcb_test_compare_cursor. */
  69. #define XCB_TEST_COMPARE_CURSOR 1
  70.  
  71. /**
  72.  * @brief xcb_test_compare_cursor_request_t
  73.  **/
  74. typedef struct xcb_test_compare_cursor_request_t {
  75.     uint8_t      major_opcode; /**<  */
  76.     uint8_t      minor_opcode; /**<  */
  77.     uint16_t     length; /**<  */
  78.     xcb_window_t window; /**<  */
  79.     xcb_cursor_t cursor; /**<  */
  80. } xcb_test_compare_cursor_request_t;
  81.  
  82. /**
  83.  * @brief xcb_test_compare_cursor_reply_t
  84.  **/
  85. typedef struct xcb_test_compare_cursor_reply_t {
  86.     uint8_t  response_type; /**<  */
  87.     uint8_t  same; /**<  */
  88.     uint16_t sequence; /**<  */
  89.     uint32_t length; /**<  */
  90. } xcb_test_compare_cursor_reply_t;
  91.  
  92. /** Opcode for xcb_test_fake_input. */
  93. #define XCB_TEST_FAKE_INPUT 2
  94.  
  95. /**
  96.  * @brief xcb_test_fake_input_request_t
  97.  **/
  98. typedef struct xcb_test_fake_input_request_t {
  99.     uint8_t      major_opcode; /**<  */
  100.     uint8_t      minor_opcode; /**<  */
  101.     uint16_t     length; /**<  */
  102.     uint8_t      type; /**<  */
  103.     uint8_t      detail; /**<  */
  104.     uint8_t      pad0[2]; /**<  */
  105.     uint32_t     time; /**<  */
  106.     xcb_window_t window; /**<  */
  107.     uint8_t      pad1[8]; /**<  */
  108.     uint16_t     rootX; /**<  */
  109.     uint16_t     rootY; /**<  */
  110.     uint8_t      pad2[7]; /**<  */
  111.     uint8_t      deviceid; /**<  */
  112. } xcb_test_fake_input_request_t;
  113.  
  114. /** Opcode for xcb_test_grab_control. */
  115. #define XCB_TEST_GRAB_CONTROL 3
  116.  
  117. /**
  118.  * @brief xcb_test_grab_control_request_t
  119.  **/
  120. typedef struct xcb_test_grab_control_request_t {
  121.     uint8_t  major_opcode; /**<  */
  122.     uint8_t  minor_opcode; /**<  */
  123.     uint16_t length; /**<  */
  124.     uint8_t  impervious; /**<  */
  125.     uint8_t  pad0[3]; /**<  */
  126. } xcb_test_grab_control_request_t;
  127.  
  128. /**
  129.  * Delivers a request to the X server
  130.  * @param c The connection
  131.  * @return A cookie
  132.  *
  133.  * Delivers a request to the X server.
  134.  * 
  135.  */
  136.  
  137. /*****************************************************************************
  138.  **
  139.  ** xcb_test_get_version_cookie_t xcb_test_get_version
  140.  ** 
  141.  ** @param xcb_connection_t *c
  142.  ** @param uint8_t           major_version
  143.  ** @param uint16_t          minor_version
  144.  ** @returns xcb_test_get_version_cookie_t
  145.  **
  146.  *****************************************************************************/
  147.  
  148. xcb_test_get_version_cookie_t
  149. xcb_test_get_version (xcb_connection_t *c  /**< */,
  150.                       uint8_t           major_version  /**< */,
  151.                       uint16_t          minor_version  /**< */);
  152.  
  153. /**
  154.  * Delivers a request to the X server
  155.  * @param c The connection
  156.  * @return A cookie
  157.  *
  158.  * Delivers a request to the X server.
  159.  * 
  160.  * This form can be used only if the request will cause
  161.  * a reply to be generated. Any returned error will be
  162.  * placed in the event queue.
  163.  */
  164.  
  165. /*****************************************************************************
  166.  **
  167.  ** xcb_test_get_version_cookie_t xcb_test_get_version_unchecked
  168.  ** 
  169.  ** @param xcb_connection_t *c
  170.  ** @param uint8_t           major_version
  171.  ** @param uint16_t          minor_version
  172.  ** @returns xcb_test_get_version_cookie_t
  173.  **
  174.  *****************************************************************************/
  175.  
  176. xcb_test_get_version_cookie_t
  177. xcb_test_get_version_unchecked (xcb_connection_t *c  /**< */,
  178.                                 uint8_t           major_version  /**< */,
  179.                                 uint16_t          minor_version  /**< */);
  180.  
  181. /**
  182.  * Return the reply
  183.  * @param c      The connection
  184.  * @param cookie The cookie
  185.  * @param e      The xcb_generic_error_t supplied
  186.  *
  187.  * Returns the reply of the request asked by
  188.  * 
  189.  * The parameter @p e supplied to this function must be NULL if
  190.  * xcb_test_get_version_unchecked(). is used.
  191.  * Otherwise, it stores the error if any.
  192.  */
  193.  
  194. /*****************************************************************************
  195.  **
  196.  ** xcb_test_get_version_reply_t * xcb_test_get_version_reply
  197.  ** 
  198.  ** @param xcb_connection_t               *c
  199.  ** @param xcb_test_get_version_cookie_t   cookie
  200.  ** @param xcb_generic_error_t           **e
  201.  ** @returns xcb_test_get_version_reply_t *
  202.  **
  203.  *****************************************************************************/
  204.  
  205. xcb_test_get_version_reply_t *
  206. xcb_test_get_version_reply (xcb_connection_t               *c  /**< */,
  207.                             xcb_test_get_version_cookie_t   cookie  /**< */,
  208.                             xcb_generic_error_t           **e  /**< */);
  209.  
  210. /**
  211.  * Delivers a request to the X server
  212.  * @param c The connection
  213.  * @return A cookie
  214.  *
  215.  * Delivers a request to the X server.
  216.  * 
  217.  */
  218.  
  219. /*****************************************************************************
  220.  **
  221.  ** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor
  222.  ** 
  223.  ** @param xcb_connection_t *c
  224.  ** @param xcb_window_t      window
  225.  ** @param xcb_cursor_t      cursor
  226.  ** @returns xcb_test_compare_cursor_cookie_t
  227.  **
  228.  *****************************************************************************/
  229.  
  230. xcb_test_compare_cursor_cookie_t
  231. xcb_test_compare_cursor (xcb_connection_t *c  /**< */,
  232.                          xcb_window_t      window  /**< */,
  233.                          xcb_cursor_t      cursor  /**< */);
  234.  
  235. /**
  236.  * Delivers a request to the X server
  237.  * @param c The connection
  238.  * @return A cookie
  239.  *
  240.  * Delivers a request to the X server.
  241.  * 
  242.  * This form can be used only if the request will cause
  243.  * a reply to be generated. Any returned error will be
  244.  * placed in the event queue.
  245.  */
  246.  
  247. /*****************************************************************************
  248.  **
  249.  ** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked
  250.  ** 
  251.  ** @param xcb_connection_t *c
  252.  ** @param xcb_window_t      window
  253.  ** @param xcb_cursor_t      cursor
  254.  ** @returns xcb_test_compare_cursor_cookie_t
  255.  **
  256.  *****************************************************************************/
  257.  
  258. xcb_test_compare_cursor_cookie_t
  259. xcb_test_compare_cursor_unchecked (xcb_connection_t *c  /**< */,
  260.                                    xcb_window_t      window  /**< */,
  261.                                    xcb_cursor_t      cursor  /**< */);
  262.  
  263. /**
  264.  * Return the reply
  265.  * @param c      The connection
  266.  * @param cookie The cookie
  267.  * @param e      The xcb_generic_error_t supplied
  268.  *
  269.  * Returns the reply of the request asked by
  270.  * 
  271.  * The parameter @p e supplied to this function must be NULL if
  272.  * xcb_test_compare_cursor_unchecked(). is used.
  273.  * Otherwise, it stores the error if any.
  274.  */
  275.  
  276. /*****************************************************************************
  277.  **
  278.  ** xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply
  279.  ** 
  280.  ** @param xcb_connection_t                  *c
  281.  ** @param xcb_test_compare_cursor_cookie_t   cookie
  282.  ** @param xcb_generic_error_t              **e
  283.  ** @returns xcb_test_compare_cursor_reply_t *
  284.  **
  285.  *****************************************************************************/
  286.  
  287. xcb_test_compare_cursor_reply_t *
  288. xcb_test_compare_cursor_reply (xcb_connection_t                  *c  /**< */,
  289.                                xcb_test_compare_cursor_cookie_t   cookie  /**< */,
  290.                                xcb_generic_error_t              **e  /**< */);
  291.  
  292. /**
  293.  * Delivers a request to the X server
  294.  * @param c The connection
  295.  * @return A cookie
  296.  *
  297.  * Delivers a request to the X server.
  298.  * 
  299.  * This form can be used only if the request will not cause
  300.  * a reply to be generated. Any returned error will be
  301.  * saved for handling by xcb_request_check().
  302.  */
  303.  
  304. /*****************************************************************************
  305.  **
  306.  ** xcb_void_cookie_t xcb_test_fake_input_checked
  307.  ** 
  308.  ** @param xcb_connection_t *c
  309.  ** @param uint8_t           type
  310.  ** @param uint8_t           detail
  311.  ** @param uint32_t          time
  312.  ** @param xcb_window_t      window
  313.  ** @param uint16_t          rootX
  314.  ** @param uint16_t          rootY
  315.  ** @param uint8_t           deviceid
  316.  ** @returns xcb_void_cookie_t
  317.  **
  318.  *****************************************************************************/
  319.  
  320. xcb_void_cookie_t
  321. xcb_test_fake_input_checked (xcb_connection_t *c  /**< */,
  322.                              uint8_t           type  /**< */,
  323.                              uint8_t           detail  /**< */,
  324.                              uint32_t          time  /**< */,
  325.                              xcb_window_t      window  /**< */,
  326.                              uint16_t          rootX  /**< */,
  327.                              uint16_t          rootY  /**< */,
  328.                              uint8_t           deviceid  /**< */);
  329.  
  330. /**
  331.  * Delivers a request to the X server
  332.  * @param c The connection
  333.  * @return A cookie
  334.  *
  335.  * Delivers a request to the X server.
  336.  * 
  337.  */
  338.  
  339. /*****************************************************************************
  340.  **
  341.  ** xcb_void_cookie_t xcb_test_fake_input
  342.  ** 
  343.  ** @param xcb_connection_t *c
  344.  ** @param uint8_t           type
  345.  ** @param uint8_t           detail
  346.  ** @param uint32_t          time
  347.  ** @param xcb_window_t      window
  348.  ** @param uint16_t          rootX
  349.  ** @param uint16_t          rootY
  350.  ** @param uint8_t           deviceid
  351.  ** @returns xcb_void_cookie_t
  352.  **
  353.  *****************************************************************************/
  354.  
  355. xcb_void_cookie_t
  356. xcb_test_fake_input (xcb_connection_t *c  /**< */,
  357.                      uint8_t           type  /**< */,
  358.                      uint8_t           detail  /**< */,
  359.                      uint32_t          time  /**< */,
  360.                      xcb_window_t      window  /**< */,
  361.                      uint16_t          rootX  /**< */,
  362.                      uint16_t          rootY  /**< */,
  363.                      uint8_t           deviceid  /**< */);
  364.  
  365. /**
  366.  * Delivers a request to the X server
  367.  * @param c The connection
  368.  * @return A cookie
  369.  *
  370.  * Delivers a request to the X server.
  371.  * 
  372.  * This form can be used only if the request will not cause
  373.  * a reply to be generated. Any returned error will be
  374.  * saved for handling by xcb_request_check().
  375.  */
  376.  
  377. /*****************************************************************************
  378.  **
  379.  ** xcb_void_cookie_t xcb_test_grab_control_checked
  380.  ** 
  381.  ** @param xcb_connection_t *c
  382.  ** @param uint8_t           impervious
  383.  ** @returns xcb_void_cookie_t
  384.  **
  385.  *****************************************************************************/
  386.  
  387. xcb_void_cookie_t
  388. xcb_test_grab_control_checked (xcb_connection_t *c  /**< */,
  389.                                uint8_t           impervious  /**< */);
  390.  
  391. /**
  392.  * Delivers a request to the X server
  393.  * @param c The connection
  394.  * @return A cookie
  395.  *
  396.  * Delivers a request to the X server.
  397.  * 
  398.  */
  399.  
  400. /*****************************************************************************
  401.  **
  402.  ** xcb_void_cookie_t xcb_test_grab_control
  403.  ** 
  404.  ** @param xcb_connection_t *c
  405.  ** @param uint8_t           impervious
  406.  ** @returns xcb_void_cookie_t
  407.  **
  408.  *****************************************************************************/
  409.  
  410. xcb_void_cookie_t
  411. xcb_test_grab_control (xcb_connection_t *c  /**< */,
  412.                        uint8_t           impervious  /**< */);
  413.  
  414.  
  415. #endif
  416.  
  417. /**
  418.  * @}
  419.  */
  420.